package com.hrp.book

import android.content.Intent
import android.os.Bundle
import com.hrp.book.base.BaseActivity
import com.hrp.book.base.BaseViewModel
import com.hrp.book.databinding.ActivitySplashBinding
import com.hrp.book.ui.main.MainActivity

class SplashActivity : BaseActivity<ActivitySplashBinding, BaseViewModel>() {


    override fun hasViewModel(): Boolean {
        return false
    }

    override fun getLayoutId(): Int {
        return R.layout.activity_splash
    }

    override fun onLazyInitView(savedInstanceState: Bundle?) {
        toMainActivity()
    }


    private fun toMainActivity() {
        startActivity(Intent(this, MainActivity::class.java))
        finish()
    }


}